package oktx.sample.dubbo;

import oktx.JtaTransaction;
import oktx.sample.dubbo.model.Book;

import java.util.List;

/**
 * Created by dave on 18-5-20 上午11:16.
 */
public interface BookApi {

    @JtaTransaction
    Book addBook(Book book);

    List<Book> getBooks();

    @JtaTransaction
    void removeAllBooks();
}
